Skip to content

ingester: Revert stringlabels in performance critical paths#6980

Draft
harry671003 wants to merge 1 commit intocortexproject:masterfrom
harry671003:revert_string_labels
Draft

ingester: Revert stringlabels in performance critical paths#6980
harry671003 wants to merge 1 commit intocortexproject:masterfrom
harry671003:revert_string_labels

Conversation

@harry671003
Copy link
Contributor

What this PR does:
After deploying Cortex with the latest Prometheus update #6930, we saw an increase in 5XXs from distributor -> ingesters.
This PR reverts the suspicious change from the PR.

  • cortexpb.FromLabelAdaptersToLabelsWithCopy() is used in Push() when a new series is created.

copiedLabels = cortexpb.FromLabelAdaptersToLabelsWithCopy(ts.Labels)

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@friedrichg friedrichg changed the title ingester: Revert stringlabels in performance critial paths ingester: Revert stringlabels in performance critical paths Aug 22, 2025
Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we plan to continue this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants